package com.daoeping.dao;

import com.daoeping.data.Usr_projectexperience;
import com.daoeping.data.Usr_workexperience;

import java.util.List;


public class Usr_projectexperienceDAO extends AllDaoSupport {
	public List<Usr_projectexperience> findUsr_projectexperienceList(){
		String hql = "from Usr_projectexperience";
		return (List<Usr_projectexperience>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_projectexperience> findUsr_projectexperienceByID(int id){
		String hql = "from Usr_projectexperience where id =" + id;
		return (List<Usr_projectexperience>) this.selectDataByHQL(hql);
	}
	
	public List<Usr_projectexperience> findUsr_projectexperienceByWorkexpId(int work_exp_id){
		String hql = "from Usr_projectexperience where work_exp_id =" + work_exp_id ;
		return (List<Usr_projectexperience>) this.selectDataByHQL(hql);
	}
}